Money Risk Management with Trade Tracking
Overview 
The Money Risk Management with Trade Tracking indicator is a powerful tool designed for traders on TradingView to simplify trade simulation and risk management. Unlike the TradingView Strategy Tester, which can be complex for beginners, this indicator provides an intuitive, beginner-friendly interface to evaluate trading strategies in a realistic manner, mirroring real-world trading conditions.
Built on the foundation of open-source contributions from LuxAlgo and TCP, this indicator integrates external indicator signals, overlays take-profit (TP) and stop-loss (SL) levels, and provides detailed money management analytics. It empowers traders to visualize potential profits, losses, and risk-reward ratios, making it easier to understand the financial outcomes of their strategies.
 Key Features 
 
 Signal Integration:   Seamlessly integrates with external long and short signals from other indicators, allowing traders to overlay TP/SL levels based on their preferred strategies.
 Realistic Trade Simulation:  Simulates trades as they would occur in real-world scenarios, accounting for initial capital, risk percentage, leverage, and compounding effects.
 Money Management Dashboard:  Displays critical metrics such as current capital, unrealized P&L, risk amount, potential profit, risk-reward ratio, and trade status in a customizable, beginner-friendly table.
 TP/SL Visualization:  Plots TP and SL levels on the chart with customizable styles (solid, dashed, dotted) and colors, along with optional labels for clarity.
 Performance Tracking:  Tracks total trades, win/loss counts, win rate, and profit factor, providing a clear overview of strategy performance.
 Liquidation Risk Alerts:  Warns traders if stop-loss levels risk liquidation based on leverage settings, enhancing risk awareness.
 
 
 Benefits for Traders 
 
 Beginner-Friendly:  Simplifies the complexities of the TradingView Strategy Tester, offering an intuitive interface for new traders to simulate and evaluate trades without confusion.
 Real-World Insights:  Helps traders understand the actual profit or loss potential of their strategies by factoring in capital, risk, and leverage, bridging the gap between theoretical backtesting and real-world execution.
 Enhanced Decision-Making:  Provides clear, real-time analytics on risk-reward ratios, unrealized P&L, and trade performance, enabling informed trading decisions.
 Customizable and Flexible:  Allows customization of TP/SL settings, table positions, colors, and sizes, catering to individual trader preferences.
 Risk Management Focus:  Encourages disciplined trading by highlighting risk amounts, potential profits, and liquidation risks, fostering better financial planning.
 
 Why This Indicator Stands Out 
Many traders struggle to translate backtested strategy results into real-world outcomes due to the abstract nature of percentage-based profitability metrics. This indicator addresses that challenge by providing a practical, user-friendly tool that simulates trades with real-world parameters like capital, leverage, and compounding. Its open-source nature ensures accessibility, while its integration with other indicators makes it versatile for various trading styles.
 How to Use 
 
 Add to TradingView:  Copy the Pine Script code into TradingView’s Pine Editor and add it to your chart.
 Configure Inputs:  Set your initial capital, risk percentage, leverage, and TP/SL values in the indicator settings. Select external long/short signal sources if integrating with other indicators.
 Monitor Dashboards:  Use the Money Management and Target Dashboard tables to track trade performance and risk metrics in real time.
 Analyze Results:  Review win rates, profit factors, and P&L to refine your trading strategy.
 
 Credits 
 This indicator builds upon the open-source contributions of  LuxAlgo  and  TCP , whose efforts in sharing their code have made this tool possible. Their dedication to the trading community is deeply appreciated.
Cari dalam skrip untuk "stop loss"
Chaikin Momentum Scalper🎯 Overview
The Chaikin Momentum Scalper is a powerful trading strategy designed to identify momentum shifts in the market and ride the trend for maximum profits. This strategy is ideal for trading the USD/JPY currency pair on a 15-minute chart, making it perfect for high-frequency trading (HFT). Whether you’re starting with a small account of $1,000 or managing a larger portfolio, this strategy can scale to suit your needs.
________________________________________
🔑 How the Strategy Works
Here’s how the Chaikin Momentum Scalper identifies trade opportunities:
1️⃣ Momentum Detection
The core of this strategy is the Chaikin Oscillator, a tool that measures the flow of money into or out of a market. It helps us understand whether buyers (bulls) or sellers (bears) are in control.
•	When the indicator crosses above zero, it signals that buying momentum is picking up – a buying opportunity.
•	When the indicator crosses below zero, it signals that selling momentum is increasing – a selling opportunity.
2️⃣ Trend Confirmation
We don’t just jump into trades based on momentum alone. We also use a 200-period simple moving average (SMA) to confirm the overall trend.
•	If the price is above the SMA, it confirms an uptrend, so we look for buy trades.
•	If the price is below the SMA, it confirms a downtrend, so we look for sell trades.
This way, we align our trades with the broader market direction for higher success rates.
3️⃣ Volatility & Risk Management
We use a tool called the Average True Range (ATR) to measure market volatility. This helps us:
•	Set a stop-loss (where we’ll exit the trade if the market moves against us) at a safe distance from our entry point.
•	Set a take-profit (where we’ll lock in profits) at a target that’s larger than the stop-loss, ensuring a good reward-to-risk ratio.
This approach adapts to the market’s behavior, tightening stops in calmer conditions and widening them when volatility increases.
________________________________________
📈 Why This Strategy Works
✅ It combines momentum and trend-following principles, increasing the chances of trading in the right direction.
✅ It dynamically adjusts risk levels based on market volatility, keeping losses small and profits big.
✅ It’s scalable – perfect for both small accounts (like $1,000) and larger, corporate-sized portfolios.
✅ It has been deep-backtested on USD/JPY 15-minute charts, proving its consistency across different market conditions.
________________________________________
📝 Important Notes
📌 This strategy is best used for USD/JPY on a 15-minute chart, making it great for high-frequency trading while you continue to build and refine your trading system.
📌 It’s designed to work on both small ($1,000+) and large accounts, so it can grow with you as your capital increases.
📌 While it has passed deep backtesting on this pair and timeframe, remember that no strategy is perfect. It’s crucial to test it yourself, start with a demo account, and apply proper risk management before trading real money.
🌟 Final Thoughts
The Chaikin Momentum Scalper is a solid, adaptable trading approach combining momentum, trend direction, and volatility awareness. If you’re looking for a strategy to kick-start your trading journey—or to add to your existing system—it offers a strong foundation.
Ultimate Scalping Tool[BullByte]Overview 
The  Ultimate Scalping Tool  is an open-source TradingView indicator built for scalpers and short-term traders released under the Mozilla Public License 2.0. It uses a custom  Quantum Flux Candle (QFC)  oscillator to combine multiple market forces into one visual signal. In plain terms, the script reads  momentum, trend strength, volatility, and volume  together and plots a special  “candlestick”  each bar (the QFC) that reflects the overall market bias. This unified view makes it easier to spot entries and exits: the tool labels signals as  Strong Buy/Sell, Pullback (a brief retracement in a trend), Early Entry, or Exit Warning . It also provides color-coded alerts and a small dashboard of metrics. In practice, traders see green/red oscillator bars and symbols on the chart when conditions align, helping them scalp or trend-follow without reading multiple separate indicators.
 Core Components 
 Quantum Flux Candle (QFC) Construction 
The QFC is the heart of the indicator. Rather than using raw price, it creates a candlestick-like bar from the underlying oscillator values.  Each QFC bar has an “open,” “high/low,” and “close” derived from calculated momentum and volatility inputs for that period . In effect, this turns the oscillator into intuitive candle patterns so traders can recognize momentum shifts visually. (For comparison, note that Heikin-Ashi candles “have a smoother look because   take an average of the movement”. The QFC instead represents exact oscillator readings, so it reflects true momentum changes without hiding price action.) Colors of QFC bars change dynamically (e.g. green for bullish momentum, red for bearish) to highlight shifts.  This is the first open-source QFC oscillator that dynamically weights four non-correlated indicators with moving thresholds, which makes it a unique indicator on its own. 
 Oscillator Normalization & Adaptive Weights 
The script normalizes its oscillator to a fixed scale (for example, a 0–100 range much like the RSI) so that various inputs can be compared fairly. It then applies adaptive weighting: the relative influence of trend, momentum, volatility or volume signals is automatically adjusted based on current market conditions. For instance, in very volatile markets the script might weight volatility more heavily, or in a strong trend it might give extra weight to trend direction.  Normalizing data and adjusting weights helps keep the QFC sensitive but stable (normalization ensures all inputs fit a common scale). 
 Trend/Momentum/Volume/Volatility Fusion 
Unlike a typical single-factor oscillator, the QFC oscillator fuses four aspects at once. It may compute, for example,  a trend indicator (such as an ADX or moving average slope), a momentum measure (like RSI or Rate-of-Change), a volume-based pressure (similar to MFI/OBV), and a volatility measure (like ATR) . These different values are combined into one composite oscillator. This “multi-dimensional” approach follows best practices of using non-correlated indicators (trend, momentum, volume, volatility) for confirmation. By encoding all these signals in one line, a high QFC reading means that trend, momentum, and volume are all aligned, whereas a neutral reading might mean mixed conditions. This gives traders a comprehensive picture of market strength.
 Signal Classification 
The script interprets the QFC oscillator to label trades. For example:
• Strong Buy/Sell : Triggered when the oscillator crosses a high-confidence threshold (e.g. breaks clearly above zero with strong slope), indicating a well-confirmed move. This is like seeing a big green/red QFC candle aligned with the trend.
• Pullbacks : Identified when the trend is up but momentum dips briefly. A Pullback Buy appears if the overall trend is bullish but the oscillator has a short retracement – a typical buying opportunity in an uptrend. (A pullback is “a brief decline or pause in a generally upward price trend”.)
• Early Buy/Sell : Marks an initial swing in the oscillator suggesting a possible new trend, before it is fully confirmed. It’s a hint of momentum building (an early-warning signal), not as strong as the confirmed “Strong” signal.
• Exit Warnings : Issued when momentum peaks or reverses. For instance, if the QFC bars reach a high and start turning red/green opposite, the indicator warns that the move may be ending. In other words, a Momentum Peak is the point of maximum strength after which weakness may follow.
These categories correspond to typical trading concepts: Pullback (temporary reversal in an uptrend), Early Buy (an initial bullish cross), Strong Buy (confirmed bullish momentum), and Momentum Peak (peak oscillator value suggesting exhaustion).
 Filters (DI Reversal, Dynamic Thresholds, HTF EMA/ADX) 
Extra filters help avoid bad trades.  A DI Reversal filter uses the +DI/–DI lines (from the ADX system) to require that the trend direction confirms the signal . For example, it might ignore a buy signal if the +DI is still below –DI. Dynamic Thresholds adjust signal levels on-the-fly: rather than fixed “overbought” lines, they move with volatility so signals happen under appropriate market stress. An optional High-Timeframe EMA or ADX filter adds a check against a larger timeframe trend: for instance, only taking a trade if price is above the weekly EMA or if weekly ADX shows a strong trend. (Notably, the ADX is “a technical indicator used by traders to determine the strength of a price trend”, so requiring a high-timeframe ADX avoids trading against the bigger trend.)
 Dashboard Metrics & Color Logic 
 
The  Dashboard  in the  Ultimate Scalping Tool (UST)  serves as a centralized information hub, providing traders with real-time insights into market conditions, trend strength, momentum, volume pressure, and trade signals. It is highly customizable, allowing users to adjust its appearance and content based on their preferences.  
 1. Dashboard Layout & Customization   
 Short vs. Extended Mode : Users can toggle between a  compact view  (9 rows) and an  extended view  (13 rows) via the `Short Dashboard` input.  
 Text Size Options : The dashboard supports three text sizes— Tiny, Small, and Normal —adjustable via the `Dashboard Text Size` input.  
 Positioning : The dashboard is positioned in the  top-right corner  by default but can be moved if modified in the script.  
 2. Key Metrics Displayed   
The dashboard presents critical trading metrics in a structured table format:  
 Trend (TF) : Indicates the current trend direction (Strong Bullish, Moderate Bullish, Sideways, Moderate Bearish, Strong Bearish) based on  normalized trend strength (normTrend) .  
 Momentum (TF) : Displays momentum status (Strong Bullish/Bearish or Neutral) derived from the  oscillator's position relative to dynamic thresholds.   
 Volume (CMF) : Shows buying/selling pressure levels (Very High Buying, High Selling, Neutral, etc.) based on the  Chaikin Money Flow (CMF) indicator.   
 Basic & Advanced Signals:   
 Basic Signal : Provides simple trade signals (Strong Buy, Strong Sell, Pullback Buy, Pullback Sell, No Trade).  
 Advanced Signal : Offers nuanced signals (Early Buy/Sell, Momentum Peak, Weakening Momentum, etc.) with color-coded alerts.  
 RSI : Displays the Relative Strength Index (RSI) value, colored based on overbought (>70), oversold (<30), or neutral conditions.  
 HTF Filter : Indicates the  higher timeframe trend status  (Bullish, Bearish, Neutral) when using the Leading HTF Filter.  
 VWAP : Shows the V olume-Weighted Average Price  and whether the current price is above (bullish) or below (bearish) it.  
 ADX : Displays the  Average Directional Index (ADX)  value, with color highlighting whether it is rising (green) or falling (red).  
 Market Mode : Shows the selected  market type (Crypto, Stocks, Options, Forex, Custom).   
 Regime : Indicates volatility conditions (High, Low, Moderate) based on the **ATR ratio**.  
 3. Filters Status Panel 
A secondary panel displays the  status of active filters,  helping traders quickly assess which conditions are influencing signals:  
-  DI Reversal Filter:  On/Off (confirms reversals before generating signals).  
-  Dynamic Thresholds:  On/Off (adjusts buy/sell thresholds based on volatility).  
-  Adaptive Weighting:  On/Off (auto-adjusts oscillator weights for trend/momentum/volatility).  
-  Early Signal:  On/Off (enables early momentum-based signals).  
-  Leading HTF Filter:  On/Off (applies higher timeframe trend confirmation).  
 4. Visual Enhancements   
 Color-Coded Cells : Each metric is color-coded (green for bullish, red for bearish, gray for neutral) for quick interpretation.  
 Dynamic Background : The dashboard background adapts to market conditions (bullish/bearish/neutral) based on ADX and DI trends.  
 Customizable Reference Lines : Users can enable/disable fixed reference lines for the oscillator.  
 How It(QFC) Differs from Traditional Indicators 
 Quantum Flux Candle (QFC) Versus Heikin-Ashi 
Heikin-Ashi candles smooth price by averaging (HA’s open/close use averages) so they show trend clearly but hide true price (the current HA bar’s close is not the real price).  QFC candles are different: they are oscillator values, not price averages . A Heikin-Ashi chart “has a smoother look because it is essentially taking an average of the movement”, which can cause lag. The QFC instead shows the raw combined momentum each bar, allowing faster recognition of shifts. In short, HA is a smoothed price chart; QFC is a momentum-based chart.
 Versus Standard Oscillators 
Common oscillators like RSI or MACD use fixed formulas on price (or price+volume). For example, RSI “compares gains and losses and normalizes this value on a scale from 0 to 100”, reflecting pure price momentum. MFI is similar but adds volume. These indicators each show one dimension: momentum or volume. The Ultimate Scalping Tool’s QFC goes further by integrating trend strength and volatility too. In practice, this means a move that looks strong on RSI might be downplayed by low volume or weak trend in QFC. As one source notes, using multiple non-correlated indicators (trend, momentum, volume, volatility) provides a more complete market picture.  The QFC’s multi-factor fusion is unique – it is effectively a multi-dimensional oscillator rather than a traditional single-input one. 
 Signal Style 
Traditional oscillators often use crossovers (RSI crossing 50) or fixed zones (MACD above zero) for signals. The Ultimate Scalping Tool’s signals are custom-classified: it explicitly labels pullbacks, early entries, and strong moves. These terms go beyond a typical indicator’s generic “buy”/“sell.” In other words, it packages a strategy around the oscillator, which traders can backtest or observe without reading code.
 Key Term Definitions 
• Pullback : A short-term dip or consolidation in an uptrend. In this script, a Pullback Buy appears when price is generally rising but shows a brief retracement. (As defined by Investopedia, a pullback is “a brief decline or pause in a generally upward price trend”.)
• Early Buy/Sell : An initial or tentative entry signal. It means the oscillator first starts turning positive (or negative) before a full trend has developed. It’s an early indication that a trend might be starting.
• Strong Buy/Sell : A confident entry signal when multiple conditions align. This label is used when momentum is already strong and confirmed by trend/volume filters, offering a higher-probability trade.
• Momentum Peak : The point where bullish (or bearish) momentum reaches its maximum before weakening. When the oscillator value stops rising (or falling) and begins to reverse, the script flags it as a peak – signaling that the current move could be overextended.
 What is the Flux MA? 
 The Flux MA (Moving Average) is an Exponential Moving Average (EMA) applied to a normalized oscillator, referred to as FM . Its purpose is to smooth out the fluctuations of the oscillator, providing a clearer picture of the underlying trend direction and strength. Think of it as a dynamic baseline that the oscillator moves above or below, helping you determine whether the market is trending bullish or bearish.
 How it’s calculated (Flux MA): 
1.The oscillator is normalized (scaled to a range, typically between 0 and 1, using a default scale factor of 100.0).
2.An EMA is applied to this normalized value (FM) over a user-defined period (default is 10 periods).
3.The result is rescaled back to the oscillator’s original range for plotting.
 Why it matters : The Flux MA acts like a support or resistance level for the oscillator, making it easier to spot trend shifts.
 Color of the Flux Candle 
The Quantum Flux Candle visualizes the normalized oscillator (FM) as candlesticks, with colors that indicate specific market conditions based on the relationship between the FM and the Flux MA. Here’s what each color means:
• Green : The FM is above the Flux MA, signaling bullish momentum. This suggests the market is trending upward.
• Red : The FM is below the Flux MA, signaling bearish momentum. This suggests the market is trending downward.
• Yellow : Indicates strong buy conditions (e.g., a "Strong Buy" signal combined with a positive trend). This is a high-confidence signal to go long.
• Purple : Indicates strong sell conditions (e.g., a "Strong Sell" signal combined with a negative trend). This is a high-confidence signal to go short.
The candle mode shows the oscillator’s open, high, low, and close values for each period, similar to price candlesticks, but it’s the color that provides the quick visual cue for trading decisions.
 How to Trade the Flux MA with Respect to the Candle 
Trading with the Flux MA and Quantum Flux Candle involves using the MA as a trend indicator and the candle colors as entry and exit signals. Here’s a step-by-step guide:
1.  Identify the Trend Direction 
• Bullish Trend : The Flux Candle is green and positioned above the Flux MA. This indicates upward momentum.
• Bearish Trend : The Flux Candle is red and positioned below the Flux MA. This indicates downward momentum.
The Flux MA serves as the reference line—candles above it suggest buying pressure, while candles below it suggest selling pressure.
2.  Interpret Candle Colors for Trade Signals 
• Green Candle : General bullish momentum. Consider entering or holding a long position.
• Red Candle : General bearish momentum. Consider entering or holding a short position.
• Yellow Candle : A strong buy signal. This is an ideal time to enter a long trade.
• Purple Candle : A strong sell signal. This is an ideal time to enter a short trade.
3.  Enter Trades Based on Crossovers and Colors 
• Long Entry : Enter a buy position when the Flux Candle turns green and crosses above the Flux MA. If it turns yellow, this is an even stronger signal to go long.
• Short Entry : Enter a sell position when the Flux Candle turns red and crosses below the Flux MA. If it turns purple, this is an even stronger signal to go short.
4. Exit Trades 
• Exit Long : Close your buy position when the Flux Candle turns red or crosses below the Flux MA, indicating the bullish trend may be reversing.
• Exit Short : Close your sell position when the Flux Candle turns green or crosses above the Flux MA, indicating the bearish trend may be reversing.
•You might also exit a long trade if the candle changes from yellow to green (weakening strong buy signal) or a short trade from purple to red (weakening strong sell signal).
5.  Use Additional Confirmation 
To avoid false signals, combine the Flux MA and candle signals with other indicators or dashboard metrics (e.g., trend strength, momentum, or volume pressure). For example:
•A yellow candle with a " Strong Bullish " trend and high buying volume is a robust long signal.
•A red candle with a " Moderate Bearish " trend and neutral momentum might need more confirmation before shorting.
 Practical Example 
Imagine you’re scalping a cryptocurrency:
• Long Trade : The Flux Candle turns yellow and is above the Flux MA, with the dashboard showing "Strong Buy" and high buying volume. You enter a long position. You exit when the candle turns red and dips below the Flux MA.
• Short Trade : The Flux Candle turns purple and crosses below the Flux MA, with a "Strong Sell" signal on the dashboard. You enter a short position. You exit when the candle turns green and crosses above the Flux MA.
 Market Presets and Adaptation 
This indicator is designed to work on any market with candlestick price data (stocks, crypto, forex, indices, etc.). To handle different behavior, it provides presets for major asset classes.  Selecting a “Stocks,” “Crypto,” “Forex,” or “Options” preset automatically loads a set of parameter values optimized for that market . For example, a crypto preset might use a shorter lookback or higher sensitivity to account for crypto’s high volatility, while a stocks preset might use slightly longer smoothing since stocks often trend more slowly. In practice, this means the same core QFC logic applies across markets, but the thresholds and smoothing adjust so signals remain relevant for each asset type.
 Usage Guidelines 
• Recommended Timeframes : Optimized for 1 minute to 15 minute intraday charts. Can also be used on higher timeframes for short term swings.
• Market Types : Select “Crypto,” “Stocks,” “Forex,” or “Options” to auto tune periods, thresholds and weights. Use “Custom” to manually adjust all inputs.
• Interpreting Signals : Always confirm a signal by checking that trend, volume, and VWAP agree on the dashboard. A green “Strong Buy” arrow with green trend, green volume, and price > VWAP is highest probability.
• Adjusting Sensitivity : To reduce false signals in fast markets, enable DI Reversal Confirmation and Dynamic Thresholds. For more frequent entries in trending environments, enable Early Entry Trigger.
• Risk Management : This tool does not plot stop loss or take profit levels. Users should define their own risk parameters based on support/resistance or volatility bands.
 Background Shading 
To give you an at-a-glance sense of market regime without reading numbers, the indicator automatically tints the chart background in three modes—neutral, bullish and bearish—with two levels of intensity (light vs. dark):
 Neutral (Gray) 
When ADX is below 20 the market is considered “no trend” or too weak to trade. The background fills with a light gray (high transparency) so you know to sit on your hands.
 Bullish (Green) 
As soon as ADX rises above 20 and +DI exceeds –DI, the background turns a semi-transparent green, signaling an emerging uptrend. When ADX climbs above 30 (strong trend), the green becomes more opaque—reminding you that trend-following signals (Strong Buy, Pullback) carry extra weight.
 Bearish (Red) 
Similarly, if –DI exceeds +DI with ADX >20, you get a light red tint for a developing downtrend, and a darker, more solid red once ADX surpasses 30.
By dynamically varying both hue (green vs. red vs. gray) and opacity (light vs. dark), the background instantly communicates trend strength and direction—so you always know whether to favor breakout-style entries (in a strong trend) or stay flat during choppy, low-ADX conditions.
 The setup shown in the above chart snapshot is BTCUSD 15 min chart : Binance for reference. 
 Disclaimer 
No indicator guarantees profits. Backtest or paper trade this tool to understand its behavior in your market. Always use proper position sizing and stop loss orders.
Good luck!
- BullByte 
Williams R Zone Scalper v1.0[BullByte]Originality & Usefulness  
Unlike standard Williams R cross-over scripts, this strategy layers  five dynamic filters—moving-average trend, Supertrend, Choppiness Index, Bollinger Band Width, and volume validation —and presents a real-time dashboard with equity, PnL, filter status, and key indicator values. No other public Pine script combines these elements with toggleable filters and a custom dashboard. In backtests (BTC/USD (Binance), 5 min, 24 Mar 2025 → 28 Apr 2025), adding these filters turned a –2.09 % standalone Williams R into a +5.05 % net winner while cutting maximum drawdown in half.
---
 What This Script Does 
- Monitors Williams R (length 14) for overbought/oversold reversals.  
- Applies up to five dynamic filters to confirm trend strength and volatility direction:  
  - Moving average (SMA/EMA/WMA/HMA)  
  - Supertrend line  
  - Choppiness Index (CI)  
  - Bollinger Band Width (BBW)  
  - Volume vs. its 50-period MA  
- Plots blue arrows for Long entries (R crosses above –80 + all filters green) and red arrows for Short entries (R crosses below –20 + all filters green).  
- Optionally sets dynamic ATR-based stop-loss (1.5×ATR) and take-profit (2×ATR).  
- Shows a dashboard box with current position, equity, PnL, filter status, and real-time Williams R / MA/volume values.
---
 Backtest Summary (BTC/USD(Binance), 5 min, 24 Mar 2025 → 28 Apr 2025)   
•  Total P&L : +50.70 USD (+5.05 %)  
•  Max Drawdown : 31.93 USD (3.11 %)  
•  Total Trades : 198  
•  Win Rate : 55.05 % (109/89)  
•  Profit Factor : 1.288  
•  Commission : 0.01 % per trade  
•  Slippage : 0 ticks  
Even in choppy March–April, this multi-filter approach nets +5 % with a robust risk profile, compared to –2.09 % and higher drawdown for Williams R alone.
---
 Williams R Alone vs. Multi-Filter Version   
•  Total P&L :  
  – Williams R alone → –20.83 USD (–2.09 %)  
  – Multi-Filter → +50.70 USD (+5.05 %)  
•  Max Drawdown :  
  – Williams R alone → 62.13 USD (6.00 %)  
  – Multi-Filter → 31.93 USD (3.11 %)  
•  Total Trades : 543 vs. 198  
•  Win Rate : 60.22 % vs. 55.05 %  
•  Profit Factor : 0.943 vs. 1.288  
---
 Inputs & What They Control 
- wrLen (14): Williams R look-back  
- maType (EMA): Trend filter type (SMA, EMA, WMA, HMA)  
- maLen (20): Moving-average period  
- useChop (true): Toggle Choppiness Index filter  
- ciLen (12): CI look-back length  
- chopThr (38.2): CI threshold (below = trending)  
- useVol (true): Toggle volume-above-average filter  
- volMaLen (50): Volume MA period  
- useBBW (false): Toggle Bollinger Band Width filter  
- bbwMaLen (50): BBW MA period  
- useST (false): Toggle Supertrend filter  
- stAtrLen (10): Supertrend ATR length  
- stFactor (3.0): Supertrend multiplier  
- useSL (false): Toggle ATR-based SL/TP  
- atrLen (14): ATR period for SL/TP  
- slMult (1.5): SL = slMult × ATR  
- tpMult (2.0): TP = tpMult × ATR  
---
 How to Read the Chart   
-  Blue arrow (Long):  Williams R crosses above –80 + all enabled filters green  
-  Red arrow (Short) : Williams R crosses below –20 + all filters green  
-  Dashboard box:   
  -  Top : position and equity  
  -  Next : cumulative PnL in USD & %  
  -  Middle : green/white dots for each filter (green=passing, white=disabled)  
  -  Bottom : Williams R, MA, and volume current values  
---
 Usage Tips   
-  Add the script : Indicators → My Scripts → Williams R Zone Scalper v1.0 → Add to BTC/USD chart on 5 min.  
-  Defaults : Optimized for BTC/USD.  
-  Forex majors : Raise `chopThr` to ~42.  
-  Stocks/high-beta : Enable `useBBW`.  
-  Enable SL/TP : Toggle `useSL`; stop-loss = 1.5×ATR, take-profit = 2×ATR apply automatically.
---
 Common Questions   
- * Why not trade every Williams R reversal?*   
  Raw Williams R whipsaws in sideways markets. Choppiness and volume filters reduce false entries.  
-  *Can I use on 1 min or 15 min?*   
  Yes—adjust ATR length or thresholds accordingly. Defaults target 5 min scalping.  
-  *What if all filters are on?*   
  Fewer arrows, higher-quality signals. Expect ~10 % boost in average win size.
---
 
Disclaimer & License 
Trading carries risk of loss. Use this script “as is” under the Mozilla Public License 2.0 (mozilla.org). Always backtest, paper-trade, and adjust risk settings to your own profile.
---
 Credits & References 
- Pine Script v6, using TradingView’s built-in `ta.supertrend()`.  
- TradingView House Rules: www.tradingview.com
Goodluck!
BullByte
position_toolLibrary   "position_tool" 
Trying to turn TradingView's position tool into a library from which you can draw position tools for your strategies on the chart. Not sure if this is going to work
 calcBaseUnit() 
  Calculates the chart symbol's base unit of change in asset prices.
  Returns: (float) A ticks or pips value of base units of change.
 calcOrderPipsOrTicks(orderSize, unit) 
  Converts the `orderSize` to ticks.
  Parameters:
     orderSize (float) : (series float) The order size to convert to ticks.
     unit (simple float) : (simple float) The basic units of change in asset prices.
  Returns: (int) A tick value based on a given order size.
 calcProfitLossSize(price, entryPrice, isLongPosition) 
  Calculates a difference between a `price` and the `entryPrice` in absolute terms.
  Parameters:
     price (float) : (series float) The price to calculate the difference from.
     entryPrice (float) : (series float) The price of entry for the position.
     isLongPosition (bool) 
  Returns: (float) The absolute price displacement of a price from an entry price.
 calcRiskRewardRatio(profitSize, lossSize) 
  Calculates a risk to reward ratio given the size of profit and loss.
  Parameters:
     profitSize (float) : (series float) The size of the profit in absolute terms.
     lossSize (float) : (series float) The size of the loss in absolute terms.
  Returns: (float) The ratio between the `profitSize` to the `lossSize`
 createPosition(entryPrice, entryTime, tpPrice, slPrice, entryColor, tpColor, slColor, textColor, showExtendRight) 
  Main function to create a position visualization with entry, TP, and SL
  Parameters:
     entryPrice (float) : (float) The entry price of the position
     entryTime (int) : (int) The entry time of the position in bar_time format
     tpPrice (float) : (float) The take profit price
     slPrice (float) : (float) The stop loss price
     entryColor (color) : (color) Color for entry line
     tpColor (color) : (color) Color for take profit zone
     slColor (color) : (color) Color for stop loss zone
     textColor (color) : (color) Color for text labels
     showExtendRight (bool) : (bool) Whether to extend lines to the right
  Returns: (bool) Returns true when position is closed
DI+/- Cross Strategy with ATR SL and 2% TPDI+/- Cross Strategy with ATR Stop Loss and 2% Take Profit
📝 Script Description for Publishing:
This strategy is based on the directional movement of the market using the Average Directional Index (ADX) components — DI+ and DI- — to generate entry signals, with clearly defined risk and reward targets using ATR-based Stop Loss and Fixed Percentage Take Profit.
🔍 How it works:
Buy Signal: When DI+ crosses above 40, signaling strong bullish momentum.
Sell Signal: When DI- crosses above 40, indicating strong bearish momentum.
Stop Loss: Dynamically calculated using ATR × 1.5, to account for market volatility.
Take Profit: Fixed at 2% above/below the entry price, for consistent reward targeting.
🧠 Why it’s useful:
Combines momentum breakout logic with volatility-based risk management.
Works well on trending assets, especially when combined with higher timeframe filters.
Clean BUY and SELL visual labels make it easy to interpret and backtest.
✅ Tips for Use:
Use on assets with clear trends (e.g., major forex pairs, trending stocks, crypto).
Best on 30m – 4H timeframes, but can be customized.
Consider combining with other filters (e.g., EMA trend direction or Bollinger Bands) for even better accuracy.
Dkoderweb repainting issue fix strategyHarmonic Pattern Recognition Trading Strategy
This TradingView strategy called "Dkoderweb repainting issue fix strategy" is designed to identify and trade harmonic price patterns with optimized entry and exit points using Fibonacci levels. The strategy implements various popular harmonic patterns including Bat, Butterfly, Gartley, Crab, Shark, ABCD, and their anti-patterns.
Key Features
Pattern Recognition: Identifies 17+ harmonic price patterns including standard and anti-patterns
Fibonacci-Based Entries and Exits: Uses customizable Fibonacci levels for precision entries, take profits, and stop losses
Alternative Timeframe Analysis: Option to use higher timeframes for pattern identification
Heiken Ashi Support: Optional use of Heiken Ashi candles instead of regular candlesticks
Visual Indicators:
Pattern visualization with ZigZag indicator
Buy/sell signal markers
Color-coded background to highlight active trade zones
Customizable Fibonacci level display
How It Works
The strategy uses a ZigZag-based pattern identification system to detect pivot points
When a valid harmonic pattern forms, the strategy calculates the optimal entry window using the specified Fibonacci level (default 0.382)
Entries trigger when price returns to the entry window after pattern completion
Take profit and stop loss levels are automatically set based on customizable Fibonacci ratios
Visual alerts notify you of entries and exits
The strategy tracks active trades and displays them with background color highlights
Customizable Settings
Trade size
Entry window Fibonacci level (default 0.382)
Take profit Fibonacci level (default 0.618)
Stop loss Fibonacci level (default -0.618)
Alert messages for entries and exits
Display options for specific Fibonacci levels
Alternative timeframe selection
This strategy is designed to fix repainting issues that are common in harmonic pattern strategies, ensuring more reliable signals and backtesting results.
Deadzone Pro @DaviddTechDeadzone Pro by @DaviddTech – Adaptive Multi-Strategy NNFX Trading System 
Deadzone Pro by @DaviddTech is a meticulously engineered trading indicator that strictly adheres to the No-Nonsense Forex (NNFX) methodology. It integrates adaptive trend detection, dual confirmation indicators, advanced volatility filtering, and dynamic risk management into one powerful, visually intuitive system. Ideal for traders seeking precision and clarity, this indicator consistently delivers high-probability trade setups across all market conditions.
 🔥 Key Features: 
The Setup:
  
 
 Adaptive Hull Moving Average Baseline:  Clearly identifies trend direction using an advanced, gradient-colored Hull MA that intensifies based on trend strength, providing immediate visual clarity.
 Dual Confirmation Indicators:  Combines Waddah Attar Explosion (momentum detector) and Bull/Bear Power (strength gauge) for robust validation, significantly reducing false entries.
 Volatility Filter (ADX):  Ensures entries are only made during strong trending markets, filtering out weak, range-bound scenarios for enhanced trade accuracy.
 Dynamic Trailing Stop Loss:  Implements a SuperTrend-based trailing stop using adaptive ATR calculations, managing risk effectively while optimizing exits.
 
Dashboard:
  
 💎 Gradient Visualization & User Interface: 
 
 Dynamic gradient colors enhance readability, clearly indicating bullish/bearish strength.
 Comprehensive dashboard summarizes component statuses, real-time market sentiment, and entry conditions at a glance.
 Distinct and clear buy/sell entry and exit signals, with adaptive stop-loss levels visually plotted.
 Candlestick coloring based on momentum signals (Waddah Attar) for intuitive market reading.
 
 📈 How to Interpret Signals: 
 
 Bullish Signal:  Enter when Hull MA baseline trends upward, both confirmation indicators align bullish, ADX indicates strong trend (>25), and price breaks above the previous trailing stop.
 Bearish Signal:  Enter short or exit long when Hull MA baseline trends downward, confirmations indicate bearish momentum, ADX confirms trend strength, and price breaks below previous trailing stop.
 
 📊 Recommended Usage: 
 
 Timeframes:  Ideal on 1H, 4H, and Daily charts for swing trading; effective on shorter (5M, 15M) charts for day trading.
 Markets:  Compatible with Forex, Crypto, Indices, Stocks, and Commodities.
 
The Entry & Exit:
   
 🎯 Trading Styles: 
Choose from three distinct trading modes:
 
 Conservative:  Requires full alignment of all indicators for maximum accuracy.
 Balanced (Default):  Optimized balance between signal frequency and reliability.
 Aggressive:  Fewer confirmations needed for more frequent trading signals.
 
 📝 Credits & Originality: 
Deadzone Pro incorporates advanced concepts inspired by:
 
 Hull Moving Average by @Julien_Eche
 Waddah Attar Explosion by @LazyBear
 Bull Bear Power by @Pinecoders
 ADX methodology by @BeikabuOyaji
 
This system has been significantly refactored and enhanced by  @DaviddTech  to maximize synergy, clarity, and usability, standing apart distinctly from its original components.
Deadzone Pro exemplifies precision and discipline, aligning fully with NNFX principles to provide traders with a comprehensive yet intuitive trading advantage.
ATM Option Selling StrategyATM Option Selling Strategy – Explained
This strategy is designed for intraday option selling based on the 9/15 EMA crossover, 50/80 MA trend filter, and RSI 50 level. It ensures that all trades are exited before market close (3:24 PM IST).
. Indicators Used:
9 EMA & 15 EMA → For short-term trend identification.
50 MA & 80 MA → To determine the overall trend.
RSI (14) → To confirm momentum (above or below 50 level).
2. Entry Conditions:
🔴 Sell ATM Call (CE) when:
Price is below 50 & 80 MA (Bearish trend).
9 EMA crosses below 15 EMA (Short-term trend turns bearish).
RSI is below 50 (Momentum confirms weakness).
🟢 Sell ATM Put (PE) when:
Price is above 50 & 80 MA (Bullish trend).
9 EMA crosses above 15 EMA (Short-term trend turns bullish).
RSI is above 50 (Momentum confirms strength).
3. Position Sizing & Risk Management:
Sell 375 quantity per trade (Lot size).
50-Point Stop Loss → If option premium moves against us by 50 points, exit.
50-Point Take Profit → If option premium moves in our favor by 50 points, book profit.
Exit all trades at 3:24 PM IST → No overnight positions.
4. Exit Conditions:
✅ Stop Loss or Take Profit Hits → Automatically exits based on a 50-point move.
✅ Time-Based Exit at 3:24 PM → Ensures no open positions at market close.
Why This Works?
✔ Trend Confirmation → 50/80 MA ensures we only sell options in the direction of the market trend.
✔ Momentum Confirmation → RSI prevents entering weak trades.
✔ Controlled Risk → SL and TP protect against large losses.
✔ No Overnight Risk → All trades close before market close.
VWAP StrategyVWAP and volatility filters for structured intraday trades.
 How the Strategy Works 
 1. VWAP Anchored to Session   
VWAP is calculated from the start of each trading day.  
Standard deviations are used to create bands above/below the VWAP.
 2. Entry Triggers: Al Brooks H1/H2 and L1/L2   
 
 H1/H2 (Long Entry): Opens below 2nd lower deviation, closes above it.  
 L1/L2 (Short Entry): Opens above 2nd upper deviation, closes below it.  
 
 3. Volatility Filter (ATR)   
 
 Skips trades when deviation bands are too tight (< 3 ATRs).  
 
 4. Stop Loss   
 
 Based on the signal bar’s high/low ± stop buffer.  
 Longs: signalBarLow - stopBuffer  
 Shorts: signalBarHigh + stopBuffer  
 
 5. Take Profit / Exit Target   
Exit logic is customizable per side:  
VWAP, Deviation Band, or None
 6. Safety Exit   
 
 Exits early if X consecutive bars go against the trade.  
 Longs: X red bars  
 Shorts: X green bars  
 
 Explanation of Strategy Inputs   
- Stop Buffer: Distance from signal bar for stop-loss.  
- Long/Short Exit Rule: VWAP, Deviation Band, or None  
- Long/Short Target Deviation: Standard deviation for target exit.  
- Enable Safety Exit: Toggle emergency exit.  
- Opposing Bars: Number of opposing candles before safety exit.  
- Allow Long/Short Trades: Enable or disable entry side.  
- Show VWAP/Entry Bands: Toggle visual aids.  
- Highlight Low Vol Zones: Orange shading for low volatility skips.  
 Tuning Tips   
- Stop buffer: Use 1–5 points.  
- Target deviation: Start with VWAP. In strong trends use 2nd deviation and turn off the counter-trend entry.  
- Safety exit: 3 bars recommended.  
- Disable short/long side to focus on one type of reversal.  
 Backtest Setup Suggestions   
- initial_capital = 2000  
- default_qty_value = 1 (fixed contracts or percent-of-equity)  
Supertrend + MACD CrossoverKey Elements of the Template:
Supertrend Settings:
supertrendFactor: Adjustable to control the sensitivity of the Supertrend.
supertrendATRLength: ATR length used for Supertrend calculation.
MACD Settings:
macdFastLength, macdSlowLength, macdSignalSmoothing: These settings allow you to fine-tune the MACD for better results.
Risk Management:
Stop-Loss: The stop-loss is based on the ATR (Average True Range), a volatility-based indicator.
Take-Profit: The take-profit is based on the risk-reward ratio (set to 3x by default).
Both stop-loss and take-profit are dynamic, based on ATR, which adjusts according to market volatility.
Buy and Sell Signals:
Buy Signal: Supertrend is bullish, and MACD line crosses above the Signal line.
Sell Signal: Supertrend is bearish, and MACD line crosses below the Signal line.
Visual Elements:
The Supertrend line is plotted in green (bullish) and red (bearish).
Buy and Sell signals are shown with green and red triangles on the chart.
Next Steps for Optimization:
Backtesting:
Run backtests on BTC in the 5-minute timeframe and adjust parameters (Supertrend factor, MACD settings, risk-reward ratio) to find the optimal configuration for the 60% win ratio.
Fine-Tuning Parameters:
Adjust supertrendFactor and macdFastLength to find more optimal values based on BTC's market behavior.
Tweak the risk-reward ratio to maximize profitability while maintaining a good win ratio.
Evaluate Market Conditions:
The performance of the strategy can vary based on market volatility. It may be helpful to evaluate performance in different market conditions or pair it with a filter like RSI or volume.
Let me know if you'd like further tweaks or explanations!
RSI Pro+ (Bear market, financial crisis and so on EditionIn markets defined by volatility, fear, and uncertainty – the battlegrounds of bear markets and financial crises – you need tools forged in resilience. Introducing RSI Pro+, a strategy built upon a legendary indicator born in 1978, yet engineered with modern visual clarity to remain devastatingly effective even in the chaotic financial landscapes of 3078.
This isn't about complex algorithms predicting the unpredictable. It's about harnessing the raw, time-tested power of the Relative Strength Index (RSI) to identify potential exhaustion points and capitalize on oversold conditions. RSI Pro+ cuts through the noise, providing clear, actionable signals when markets might be poised for a relief bounce or reversal.
Core Technology (The 1978 Engine):
RSI Crossover Entry: The strategy initiates a LONG position when the RSI (default period 11) crosses above a user-defined low threshold (default 30). This classic technique aims to enter when selling pressure may be waning, offering potential entry points during sharp downturns or periods of consolidation after a fall.
Modern Enhancements (The 3078 Cockpit):
RSI Pro+ isn't just about the signal; it's about providing a professional-grade visual experience directly on your chart:
Entry Bar Highlight: A subtle background flash on the chart signals the exact bar where the RSI crossover condition is met, alerting you to potential entry opportunities.
Trade Bar Coloring: Once a trade is active, the price bars are subtly colored, giving you immediate visual confirmation that the strategy is live in the market.
Entry Price Line: A clear, persistent line marks your exact average entry price for the duration of the trade, serving as a crucial visual anchor.
Take Profit Line: Your calculated Take Profit target is plotted as a distinct line, keeping your objective clearly in sight.
Custom Entry Marker: A precise shape (▲) appears below the bar where the trade entry was actually executed, pinpointing the start of the position.
On-Chart Info Table (HUD): A clean, customizable Heads-Up Display appears when a trade is active, showing vital information at a glance:
Entry Price: Your position's average cost basis.
TP Target: The calculated price level for your Take Profit exit.
Current PnL%: Real-time Profit/Loss percentage for the open trade.
Full Customization: Nearly every aspect is configurable via the settings menu:
RSI Period & Crossover Level
Take Profit Percentage
Toggle ALL visual enhancements on/off individually
Position the Info Table wherever you prefer on the chart.
How to Use RSI Pro+:
Add to Chart: Apply the "RSI Pro+ (Bear market...)" strategy to your TradingView chart. Ensure any previous versions are removed.
Access Settings: Click the cogwheel icon (⚙️) next to the strategy name on your chart.
Configure Inputs (Crucial Step):
RSI Crossover Level: This is key. The default (30) targets standard oversold conditions. In severe downturns, you might experiment with lower levels (e.g., 25, 20) or higher ones (e.g., 40) depending on the asset and timeframe. Observe where RSI(11) typically bottoms out on your chart.
Take Profit Percentage (%): Define your desired profit target per trade (e.g., enter 0.5 for 0.5%, 1.0 for 1%). The default is a very small 0.11%.
RSI Period: While default is 11, you can adjust this (e.g., the standard 14).
Visual Enhancements: Enable or disable the visual features (background highlights, bar coloring, lines, markers, table) according to your preference using the checkboxes. Adjust table position.
Observe & Backtest: Watch how the strategy behaves on your chosen asset and timeframe. Use TradingView's Strategy Tester to analyze historical performance based on your settings. No strategy works perfectly everywhere; testing is essential.
Important Considerations:
Risk Management: This specific script version focuses on a Take Profit exit. It does not include an explicit Stop Loss. You MUST manage risk through appropriate position sizing, potentially adding a Stop Loss manually, or by modifying the script.
Oversold ≠ Reversal: An RSI crossover is an indicator of potential exhaustion, not a guarantee of a price reversal.
Fixed TP: A fixed percentage TP ensures small wins but may exit before larger potential moves.
Backtesting Limitations: Past performance does not guarantee future results.
RSI Pro+ strips away complexity to focus on a robust, time-honored principle, enhanced with modern visuals for the discerning trader navigating today's (and tomorrow's) challenging markets
Auto TrendLines [TradingFinder] Support Resistance Signal Alerts🔵 Introduction 
The trendline is one of the most essential tools in technical analysis, widely used in financial markets such as Forex, cryptocurrency, and stocks. A trendline is a straight line that connects swing highs or swing lows and visually indicates the market’s trend direction. 
Traders use trendlines to identify price structure, the strength of buyers and sellers, dynamic support and resistance zones, and optimal entry and exit points.
In technical analysis, trendlines are typically classified into three categories: uptrend lines (drawn by connecting higher lows), downtrend lines (formed by connecting lower highs), and sideways trends (moving horizontally). A valid trendline usually requires at least three confirmed touchpoints to be considered reliable for trading decisions.
Trendlines can serve as the foundation for a variety of trading strategies, such as the trendline bounce strategy, valid breakout setups, and confluence-based analysis with other tools like candlestick patterns, divergences, moving averages, and Fibonacci levels. 
Additionally, trendlines are categorized into internal and external, and further into major and minor levels, each serving unique roles in market structure analysis.
  
🔵 How to Use 
Trendlines are a key component in technical analysis, used to identify market direction, define dynamic support and resistance zones, highlight strategic entry and exit points, and manage risk. For a trendline to be reliable, it must be drawn based on structural principles—not by simply connecting two arbitrary points.
  
🟣 Selecting Pivot Types Based on Trend Direction 
The first step is to determine the market trend: uptrend, downtrend, or sideways. 
 Then, choose pivot points that match the trend type :
 
 In an uptrend, trendlines are drawn by connecting low pivots, especially higher lows.
 In a downtrend, trendlines are formed by connecting high pivots, specifically lower highs.
 
It is crucial to connect pivots of the same type and structure to ensure the trendline is valid and analytically sound.
  
🟣 Pivot Classification 
 This indicator automatically classifies pivot points into two categories :
 Major Pivots :
 
 MLL : Major Lower Low
 MHL : Major Higher Low
 MHH : Major Higher High
 MLH : Major Lower High
 
These define the primary structure of the market and are typically used in broader structural analysis.
 Minor Pivots :
 
 mLL: minor Lower Low
 mHL: minor Higher Low
 mHH: minor Higher High
 mLH: minor Lower High
 
These are used for drawing more precise trendlines within corrective waves or internal price movements.
 Example : In a downtrend, drawing a trendline from an MHH to an mHH creates structural inconsistency and introduces noise. Instead, connect points like MHL to MHL or mLH to mLH for a valid trendline.
  
🟣 Drawing High-Precision Trendlines 
 To ensure a reliable trendline :
 
 Use pivots of the same classification (Major with Major or Minor with Minor).
 Ensure at least three valid contact points (three touches = structural confirmation).
 Draw through candles with the least deviation (choose wicks or bodies based on confluence).
 Preferably draw from right to left for better alignment with current market behavior.
 Use parallel lines to turn a single trendline into a trendline zone, if needed.
 
  
🟣 Using Trendlines for Trade Entries 
 
 Bounce Entry: When price approaches the trendline and shows signs of reversal (e.g., a reversal candle, divergence, or support/resistance), enter in the direction of the trend with a logical stop-loss.
 Breakout Entry: When price breaks through the trendline with strong momentum and a confirmation (such as a retest or break of structure), consider trading in the direction of the breakout.
 
  
🟣 Trendline-Based Risk Management 
 
 For bounce entries, the stop-loss is placed below the trendline or the last pivot low (in an uptrend).
 For breakout entries, the stop-loss is set behind the breakout candle or the last structural level.
 
A broken trendline can also act as an exit signal from a trade.
🟣 Combining Trendlines with Other Tools (Confluence) 
 Trendlines gain much more strength when used alongside other analytical tools :
 
 Horizontal support and resistance levels
 Moving averages (such as EMA 50 or EMA 200)
 Fibonacci retracement zones
 Candlestick patterns (e.g., Engulfing, Pin Bar)
 RSI or MACD divergences
 Market structure breaks (BoS / ChoCH)
 
  
🔵 Settings 
 Pivot Period : This defines how sensitive the pivot detection is. A higher number means the algorithm will identify more significant pivot points, resulting in longer-term trendlines.
Alerts
 Alert :
 
 Enable or disable the entire alert system
 Set a custom alert name
 Choose how often alerts trigger (every time, once per bar, or on bar close)
 Select the time zone for alert timestamps (e.g., UTC)
 
 Each trendline type supports two alert types :
 
 Break Alert : Triggered when price breaks the trendline
 React Alert : Triggered when price reacts or bounces off the trendline
 
These alerts can be independently enabled or disabled for all trendline categories (Major/Minor, Internal/External, Up/Down).
 Display :
 For each of the eight trendline types, you can control :
 
 Whether to show or hide the line
 Whether to delete the previous line when a new one is drawn
 Color, line style (solid, dashed, dotted), extension direction (e.g., right only), and width
 
Major lines are typically thicker and more opaque, while minor lines appear thinner and more transparent.
All settings are designed to give the user full control over the appearance, behavior, and alert system of the indicator, without requiring manual drawing or adjustments.
🔵 Conclusion 
A trendline is more than just a line on the chart—it is a structural, strategic, and flexible tool in technical analysis that can serve as the foundation for understanding price behavior and making trading decisions. Whether in trending markets or during corrections, trendlines help traders identify market direction, key zones, and high-potential entry and exit points with precision.
The accuracy and effectiveness of a trendline depend on using structurally valid pivot points and adhering to proper market logic, rather than relying on guesswork or personal bias.
This indicator is built to solve that exact problem. It automatically detects and draws multiple types of trendlines based on actual price structure, separating them into Major/Minor and Internal/External categories, and respecting professional analytical principles such as pivot type, trend direction, and structural location.
GLXY Support & Resistance ZonesHere’s a structured trading strategy for Galaxy Digital Holdings Ltd. (GLXY) based on a combination of technical analysis, market sentiment, and macro crypto market movement:
⸻
1. Timeframe
    •    Swing trading timeframe: 1-week to 1-month trades.
    •    Monitor daily and 4H charts for entries and exits.
⸻
2. Key Factors Driving GLXY
    •    Strongly correlated to Bitcoin and Ethereum price movement.
    •    Sensitive to regulatory news in Canada/US and institutional crypto adoption.
    •    Watch Galaxy’s quarterly earnings and treasury BTC/ETH position updates.
⸻
3. Entry Strategy
A) Technical Setup:
    •    Buy at major support zones:
    •    Key support levels: $7.00 CAD, $9.00 CAD (verify current chart levels).
    •    Enter long positions on bullish reversal candles at these supports.
    •    Breakout trades:
    •    Enter long positions on confirmed breakouts above significant resistance (watch volume and 1D close).
    •    Moving Average Confirmation:
    •    Only trade long if price is above the 50-day moving average and 50 MA is upward sloping.
B) Macro Confirmation:
    •    Only take aggressive long positions if BTC price is in an uptrend (above its own 50-day MA).
    •    Monitor ETH/BTC pair as additional confidence for alt sentiment.
⸻
4. Exit Strategy
    •    First partial profit target: Previous swing highs or Fibonacci extension levels (commonly 1.272 or 1.618).
    •    Trailing stop: Move stop-loss to entry when trade is +10%.
    •    Hard stop-loss: Below the last daily support (2-5% risk).
⸻
5. Diversification
    •    Do not exceed 5-7% of total portfolio per trade.
    •    Hedge exposure by monitoring crypto futures or crypto sentiment indexes (eg. Fear & Greed Index).
⸻
6. Optional Short Setup
    •    Only short if price breaks major support with strong volume, and BTC/ETH are in confirmed downtrends.
    •    Short target: next daily support zone.
⸻
7. News / Event-based Catalyst
    •    Enter small positions before major earnings or after big regulatory decisions if crypto sentiment is bullish.
⸻
8. Review
    •    Reassess the strategy every month based on BTC market structure.
    •    Track your trade results for GLXY separately to refine position sizing and entry criteria.
⸻
Custom Support & Resistance with 3 LevelsThis Pine Script indicator calculates and displays three levels of support and resistance based on the opening price of the first bar of the day.
Here's how it works:
Identifies the Day's Open: The indicator first determines the opening price of the trading day. It does this by checking if the current bar's day is different from the previous bar's day. If it is, it stores the current bar's opening price as the day's opening price.
Calculates Support and Resistance: The user provides six input values: three for calculating resistance levels and three for calculating support levels. These values are added to or subtracted from the day's opening price to determine the three support and resistance levels.
Plots the Levels: The indicator then plots these six levels on the chart as horizontal lines. Resistance levels are typically plotted in shades of red, orange, and yellow, while support levels are plotted in shades of green, blue, and purple.
Key Features:
Day-Based Calculation: The support and resistance levels are anchored to the opening price of the day, providing a consistent reference point regardless of intraday price fluctuations.
Multiple Levels: The indicator provides three levels each for support and resistance, giving traders a broader perspective on potential price turning points.
Customizable: Traders can adjust the values used to calculate the support and resistance levels, allowing for flexibility and adaptation to different trading styles and markets.
Potential Use Cases:
Identifying Entry and Exit Points: Traders can use the support and resistance levels to identify potential entry points for long trades (near support) and short trades (near resistance), as well as exit points for existing positions.
Setting Stop-Loss Orders: The support and resistance levels can be used to set stop-loss orders to limit potential losses.
Gauging Trend Strength: A strong break above a resistance level can indicate bullish momentum, while a break below a support level can suggest bearish pressure.
This indicator can be a valuable tool for traders seeking to incorporate support and resistance levels into their technical analysis. However, it's important to remember that these levels are not absolute guarantees of price reversals and should be used in conjunction with other technical indicators and risk management strategies.
 SMA Trend Filter Oscillator (Adaptive)The "SMA Trend Filter Oscillator (Adaptive)" indicator is a technical analysis tool that helps traders determine the direction and strength of a trend based on an adaptive Simple Moving Average (SMA). The oscillator calculates the difference between the closing price and the SMA value, allowing for the visualization of price deviation from the average and the assessment of current market dynamics.
Key Features of the Indicator:
Adaptation to Time Frame: The indicator automatically adjusts the SMA length based on the current time frame, making it versatile for use across different time intervals. For example:
Monthly Time Frame: SMA with a length of 50.
Weekly Time Frame: SMA with a length of 40.
Daily Time Frame: SMA with a length of 20.
Hourly Time Frame: SMA with a length of 10.
Intraday Time Frames: SMA with a length of 5 (for time frames up to 15 minutes) or 7 (for others).
SMA-Based Oscillator: The oscillator is calculated as the difference between the closing price and the SMA value. This allows:
Bullish Trend Identification: When the oscillator is above zero (price is above SMA).
Bearish Trend Identification: When the oscillator is below zero (price is below SMA).
Visualization: The oscillator is displayed as a histogram, where:
Green Color indicates a bullish trend.
Red Color indicates a bearish trend.
The Zero Line (Gray) serves as a reference for trend reversal.
How to Use the Indicator:
Trend Identification: If the oscillator is above zero and colored green, it signals a bullish trend. If it is below zero and colored red, it indicates a bearish trend.
Trend Strength: The larger the oscillator value (in either direction), the stronger the trend. Small oscillator values (close to zero) may indicate sideways movement or weak trend.
Entry and Exit Points:
Buy: When the oscillator crosses the zero line from below to above (transition from red to green).
Sell: When the oscillator crosses the zero line from above to below (transition from green to red).
Signal Filtering: Use the indicator in combination with other technical analysis tools (e.g., RSI, MACD, or support/resistance levels) to confirm signals.
Advantages of the Indicator:
Adaptability: Automatic adjustment of SMA length to the current time frame makes it versatile.
Simplicity: Intuitive histogram visualization allows for quick assessment of market conditions.
Flexibility: Can be used on any market (stocks, forex, cryptocurrencies) and time frame.
Limitations:
Lag: Like any SMA-based indicator, it can lag due to the use of average values.
False Signals: In sideways markets (flat), the indicator may generate false signals.
Risk Management:
Always set stop-losses and take-profits to minimize losses.
Test the indicator on historical data before using it on a live account.
The "SMA Trend Filter Oscillator (Adaptive)" is a powerful tool for traders seeking to quickly evaluate trends and their strength. Its adaptability and simplicity make it suitable for both novice and experienced traders.
 Индикатор "SMA Trend Filter Oscillator (Adaptive)" — это инструмент технического анализа, который помогает трейдерам определять направление тренда и его силу на основе адаптивной скользящей средней (SMA). Осциллятор рассчитывает разницу между ценой закрытия и значением SMA, что позволяет визуализировать отклонение цены от среднего значения и оценивать текущую рыночную динамику.
Основные особенности индикатора:
Адаптация к таймфрейму
Индикатор автоматически подстраивает длину SMA в зависимости от текущего таймфрейма, что делает его универсальным для использования на различных временных интервалах. Например:
Месячный таймфрейм (Monthly): SMA с длиной 50.
Недельный таймфрейм (Weekly): SMA с длиной 40.
Дневной таймфрейм (Daily): SMA с длиной 20.
Часовой таймфрейм (Hourly): SMA с длиной 10.
Внутридневные таймфреймы (Intraday): SMA с длиной 5 (для таймфреймов до 15 минут) или 7 (для остальных).
Осциллятор на основе SMA
Осциллятор рассчитывается как разница между ценой закрытия и значением SMA. Это позволяет:
Определять бычий тренд, когда осциллятор выше нуля (цена выше SMA).
Определять медвежий тренд, когда осциллятор ниже нуля (цена ниже SMA).
Визуализация
Осциллятор отображается в виде гистограммы, где:
Зелёный цвет указывает на бычий тренд.
Красный цвет указывает на медвежий тренд.
Линия нуля (серая) служит ориентиром для определения смены тренда.
Как использовать индикатор:
Определение тренда
Если осциллятор находится выше нуля и окрашен в зелёный цвет, это сигнализирует о бычьем тренде.
Если осциллятор находится ниже нуля и окрашен в красный цвет, это указывает на медвежий тренд.
Сила тренда
Чем больше значение осциллятора (в положительную или отрицательную сторону), тем сильнее тренд.
Небольшие значения осциллятора (близкие к нулю) могут указывать на боковое движение или слабость тренда.
Точки входа и выхода
Покупка (Buy): Когда осциллятор пересекает нулевую линию снизу вверх (переход из красной зоны в зелёную).
Продажа (Sell): Когда осциллятор пересекает нулевую линию сверху вниз (переход из зелёной зоны в красную).
Фильтрация сигналов
Используйте индикатор в сочетании с другими инструментами технического анализа (например, RSI, MACD или уровнями поддержки/сопротивления) для подтверждения сигналов.
Преимущества индикатора:
Адаптивность: Автоматическая настройка длины SMA под текущий таймфрейм делает индикатор универсальным.
Простота: Интуитивно понятная визуализация в виде гистограммы позволяет быстро оценить рыночную ситуацию.
Гибкость: Может использоваться на любых рынках (акции, форекс, криптовалюты) и таймфреймах.
Ограничения:
Запаздывание: Как и любой индикатор на основе SMA, он может запаздывать из-за использования средних значений.
Ложные сигналы: В условиях бокового движения (флэта) индикатор может генерировать ложные сигналы.
Управление рисками: Всегда устанавливайте стоп-лоссы и тейк-профиты, чтобы минимизировать потери.
Тестирование: Перед использованием на реальном счёте протестируйте индикатор на исторических данных.
Индикатор "SMA Trend Filter Oscillator (Adaptive)" — это мощный инструмент для трейдеров, которые хотят быстро оценить тренд и его силу. Его адаптивность и простота делают его подходящим как для начинающих, так и для опытных трейдеров
ATR 3x Multiplier StrategyBeta version
Volatility and Candle Spikes in Trading
Volatility
Volatility refers to the degree of variation in the price of a financial asset over time. It measures how much the price fluctuates and is often associated with risk and uncertainty in the market. High volatility means larger price swings, while low volatility indicates more stable price movements.
Key aspects of volatility:
Measured using indicators like Average True Range (ATR), Bollinger Bands, and Implied Volatility (IV).
Influenced by factors such as market news, economic events, and liquidity.
Higher volatility increases both risk and potential profit opportunities.
Candle Spikes
A candle spike (or wick) refers to a sudden price movement that forms a long shadow or wick on a candlestick chart. These spikes can indicate strong buying or selling pressure, liquidity hunts, or stop-loss triggers.
Types of candle spikes:
Bullish Spike (Long Lower Wick): Indicates buyers rejected lower prices, pushing the price higher.
Bearish Spike (Long Upper Wick): Suggests sellers rejected higher prices, pushing the price lower.
Stop-Loss Hunt: Market makers may trigger stop-losses by creating artificial spikes before reversing the price.
News-Induced Spikes: Economic data releases or unexpected events can cause sudden price jumps.
Understanding volatility and candle spikes can help traders manage risk, spot entry/exit points, and avoid false breakouts. 🚀📈
Supertrend with 1% Target and 1% StoplossSupertrend Calculation: The Supertrend indicator is calculated using the Average True Range (ATR) and a factor. The factor and ATR length can be adjusted in the inputs.
Long and Short Conditions: The strategy enters a long position when the price crosses above the Supertrend line and a short position when the price crosses below it.
Target and Stop Loss: The strategy places a 1% target and a 1% stop loss for both long and short positions.
Visuals: The stop loss and take profit levels are plotted on the chart for better visibility.
Enhanced Doji Candle StrategyYour trading strategy is a Doji Candlestick Reversal Strategy designed to identify potential market reversals using Doji candlestick patterns. These candles indicate indecision in the market, and when detected, your strategy uses a Simple Moving Average (SMA) with a short period of 20 to confirm the overall market trend. If the price is above the SMA, the trend is considered bullish; if it's below, the trend is bearish.
Once a Doji is detected, the strategy waits for one or two consecutive confirmation candles that align with the market trend. For a bullish confirmation, the candles must close higher than their opening price without significant bottom wicks. Conversely, for a bearish confirmation, the candles must close lower without noticeable top wicks. When these conditions are met, a trade is entered at the market price.
The risk management aspect of your strategy is clearly defined. A stop loss is automatically placed at the nearest recent swing high or low, with a tighter distance of 5 pips to allow for more trading opportunities. A take-profit level is set using a 2:1 reward-to-risk ratio, meaning the potential reward is twice the size of the risk on each trade.
Additionally, the strategy incorporates an early exit mechanism. If a reversal Doji forms in the opposite direction of your trade, the position is closed immediately to minimize losses. This strategy has been optimized to increase trade frequency by loosening the strictness of Doji detection and confirmation conditions while still maintaining sound risk management principles.
The strategy is coded in Pine Script for use on TradingView and uses built-in indicators like the SMA for trend detection. You also have flexible parameters to adjust risk levels, take-profit targets, and stop-loss placements, allowing you to tailor the strategy to different market conditions.
Grim SlashOverview:
The Touch Previous Candle Strategy is a simple yet effective trading approach designed for the 1-hour chart. It focuses on price action by placing trades when the current candle interacts with key levels from the previous candle. The strategy is fully automated and includes risk management with take profit and stop loss levels.
Entry Conditions:
  
 
   Buy Signal: A buy order is triggered when the low of the current candle touches or drops below the previous candle's closing price.
     Sell Signal: A position is closed when the high of the current candle reaches or exceeds the previous candle's highest price.
 
Risk Management:
 
 
    Take Profit: The trade is exited automatically when the price increases by 15% from the entry point.
     Stop Loss: A stop loss is set at 5% below the entry price to minimize risk.
 
Best Use Cases:
 
 
    Works well in volatile markets where price frequently tests previous levels.
     Suitable for traders who prefer price-action-based strategies over indicators.
     Can be optimized for different assets or timeframes based on market behavior.
MACD Volume Strategy for XAUUSD (15m) [PineIndicators]The MACD Volume Strategy is a momentum-based trading system designed for XAUUSD on the 15-minute timeframe. It integrates two key market indicators: the Moving Average Convergence Divergence (MACD) and a volume-based oscillator to identify strong trend shifts and confirm trade opportunities. This strategy uses dynamic position sizing, incorporates leverage customization, and applies structured entry and exit conditions to improve risk management.
 ⚙️ Core Strategy Components 
 1️⃣ Volume-Based Momentum Calculation 
The strategy includes a custom volume oscillator to filter trade signals based on market activity. The oscillator is derived from the difference between short-term and long-term volume trends using Exponential Moving Averages (EMAs)
 
 
 Short EMA (default = 5) represents recent volume activity.
 Long EMA (default = 8) captures broader volume trends.
 Positive values indicate rising volume, supporting momentum-based trades.
 Negative values suggest weak market activity, reducing signal reliability.
 
By requiring positive oscillator values, the strategy ensures momentum confirmation before entering trades.
 2️⃣ MACD Trend Confirmation 
The strategy uses the MACD indicator as a trend filter. The MACD is calculated as:
 
 Fast EMA (16-period) detects short-term price trends.
 Slow EMA (26-period) smooths out price fluctuations to define the overall trend.
 Signal Line (9-period EMA) helps identify crossovers, signaling potential trend shifts.
 Histogram (MACD – Signal) visualizes trend strength.
 
The system generates trade signals based on MACD crossovers around the zero line, confirming bullish or bearish trend shifts.
 📌 Trade Logic & Conditions 
 🔹 Long Entry Conditions 
A buy signal is triggered when all the following conditions are met:
✅ MACD crosses above 0, signaling bullish momentum.
✅ Volume oscillator is positive, confirming increased trading activity.
✅ Current volume is at least 50% of the previous candle’s volume, ensuring market participation.
 🔻 Short Entry Conditions 
A sell signal is generated when:
✅ MACD crosses below 0, indicating bearish momentum.
✅ Volume oscillator is positive, ensuring market activity is sufficient.
✅ Current volume is less than 50% of the previous candle’s volume, showing decreasing participation.
This multi-factor approach filters out weak or false signals, ensuring that trades align with both momentum and volume dynamics.
 📏 Position Sizing & Leverage 
Dynamic Position Calculation:
Qty = strategy.equity × leverage / close price
 
 Leverage: Customizable (default = 1x), allowing traders to adjust risk exposure.
 Adaptive Sizing: The strategy scales position sizes based on account equity and market price.
 Slippage & Commission: Built-in slippage (2 points) and commission (0.01%) settings provide realistic backtesting results.
 
This ensures efficient capital allocation, preventing overexposure in volatile conditions.
🎯 Trade Management & Exits
Take Profit & Stop Loss Mechanism
Each position includes predefined profit and loss targets:
 
 Take Profit: +10% of risk amount.
 Stop Loss: Fixed at 10,100 points.
 
 
The risk-reward ratio remains balanced, aiming for controlled drawdowns while maximizing trade potential.
 Visual Trade Tracking 
To improve trade analysis, the strategy includes:
📌 Trade Markers:
 
 "Buy" label when a long position opens.
 "Close" label when a position exits.
 
📌 Trade History Boxes:
 
 Green for profitable trades.
 Red for losing trades.
 
📌 Horizontal Trade Lines:
 
 Shows entry and exit prices.
 Helps identify trend movements over multiple trades.
 
This structured visualization allows traders to analyze past performance directly on the chart.
 ⚡ How to Use This Strategy 
1️⃣ Apply the script to a XAUUSD (Gold) 15m chart in TradingView.
2️⃣ Adjust leverage settings as needed.
3️⃣ Enable backtesting to assess past performance.
4️⃣ Monitor volume and MACD conditions to understand trade triggers.
5️⃣ Use the visual trade markers to review historical performance.
The MACD Volume Strategy is designed for short-term trading, aiming to capture momentum-driven opportunities while filtering out weak signals using volume confirmation.
Candlesticks Not Touching EMA 3 & EMA 5 ScannerCandlesticks Not Touching EMA 3 & EMA 5 Scanner
Short Title: EMA Scanner
Overview
This indicator scans for candlesticks that do not touch the EMA 3 and EMA 5, highlighting potential trading opportunities where price action is significantly distanced from these moving averages. It identifies momentum-based entries and helps traders spot strong trends.
How It Works
It checks if the candle's high and low are completely above or below both EMAs (3 & 5).
It ensures that the distance between the candle and EMA 5 is at least a user-defined multiple of the candle range.
When a valid candle is detected, a triangle marker appears below (for long trades) or above (for short trades).
Trade Execution Strategy
Entry:
Long Entry → Break of the candle’s high
Short Entry → Break of the candle’s low
Stop Loss:
Long SL → Low of the same candle
Short SL → High of the same candle
Target: EMA 5
Additional Features
✅ Plots EMA 3 (Blue) and EMA 5 (Red) for reference
✅ Marks potential long and short trades with arrows
✅ Detects & plots when Target or Stop Loss is hit
✅ Alerts for valid signals, target hits, and stop loss hits
Best Use Cases
🔹 Suitable for intraday & swing traders looking for momentum-based trades
🔹 Works well in trending markets
🔹 Helps identify mean-reversion & breakout opportunities
🚀 Use this indicator to refine your trading setups & boost your market edge! 🚀
Futures Engulfing Candle Size Strategy (Ticks, TP/SL)The Futures Candle Size Strategy is designed to identify and trade significant price movements in the futures market based on candle size. It is optimized for futures instruments like ES, NQ, or CL, where precise tick-level calculations are essential. The strategy includes a customizable take profit and stop loss in ticks and operates only within a specified time window (e.g., 7:00 AM to 9:15 AM CST).
Key Features:
Candle Size Threshold: Trades are triggered when the candle's high-to-low range exceeds the defined threshold in ticks.
Time Filter: Limits trades to the most active market hours, specifically between 7:00 AM and 9:15 AM CST.
Take Profit and Stop Loss: Customizable exit levels in ticks to manage risk and lock in profits.
Long and Short Trades: Automatically places buy or sell orders based on the candle's direction (bullish or bearish).
Alerts: Sends alerts whenever a trade is triggered, helping you stay informed in real-time.
How It Works:
The strategy calculates the size of each candle in ticks and compares it to the user-defined threshold.
If the candle size meets or exceeds the threshold within the specified time range, it triggers a long or short trade.
The trade automatically exits when the price hits the take profit or stop loss levels.






















